<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>

<%
    String contextPath = request.getContextPath();
    String path = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort() + contextPath;
    String path1=path+"/assets/css/main.css";
    String path2=path+"/assets/image/pic03.jpg";
%>

   <link rel="stylesheet" href="<%=path1%>"/>


    <header id="header">
        <h1>修改用户信息-${user.getName()}</h1>
        <p>id:${user.id}</p>
    </header>

    <div id="main" >

        <div style="width: 50%;margin-left: auto;margin-right: auto;">
            <form commandName="user" action="/admin/user/save" method="post" >
                <div class="row">
                    <div class="12u$(medium)">
                        <ul class="alt">
                            <li>手机：13456781234</li>
                            <li>
                                <label>姓：</label><input type="text" id="lastname" value="<%=user.lastname%>"/>
                            </li> 
                            <li>
                                <label>名：</label><input type="text" id="firstname" value="<%=user.firstname%>" />
                            </li>     
                            <li>生日：   <input type="date" class="birthday" name="birthday" id="birthday"/></li>
                            <li>性别：
                                <div >
                                    <input type="radio" id="demo-priority-low" name="demo-priority" checked>
                                    <label for="demo-priority-low">男</label>
                                </div>
                                <div >
                                    <input type="radio" id="demo-priority-normal" name="demo-priority">
                                    <label for="demo-priority-normal">女</label>
                                </div>
                            </li>
                            <li>
                                <label>个人简介</label>

                            </li>
                        </ul>
                    </div>
                    <div class="11u 12u$(medium)">
                        <textarea name="comment" id="comment" value="<%=user.comment%>" rows="8"></textarea>    
                    </div> 
                    <div class="12u$" top="20px">
                        <div style="margin-top: 10px;width: 100%;">
                            <a  onclick="saveData()" class="button special">确认</a>
                        <a href="user_info.html" class="button">取消</a>
                        </div>
                        
                    </div>    
                </div>
            </form>
        </div>

    </div>

<script type="text/javascript">
    function saveData(){
        if (!$("form:first").valid()){
            return;
        }
        $("form:first").submit();
    }   
</script>
<%@ include file="/WEB-INF/views/shared/base/scripts/jqueryui.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formstyling.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formpickers.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/dialog.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentFooter.jsp"%>


